<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<title>BSS Patient Photograph</title>
	<script>
	function clicked(im) {

		try {
			window.dialogArguments.setImage(im);
		}catch(e) {
			//alert('Error while trying setImage() '+e);
			try {
				window.opener.doSubmit(im);
			}catch(e) {
				alert('Error while trying doSubmit() '+e);
			}
		}
		window.close();
	}
	</script>
	</head>
	<body>
		<div>
			<object id="photoUploader1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="350" height="300">
				<param name="movie" value="<%=request.getContextPath()%>/PhotoUploader.swf" />
				<param name="flashVars" value="uploadCompletionHandler=clicked&uploaderUrl=<%=request.getContextPath()%>/bss/images/click" />
				<embed width="350" height="300" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" 
				type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="photoUploader1" 
				bgcolor="#ffffff" quality="high" src="<%=request.getContextPath()%>/PhotoUploader.swf" flashVars="uploadCompletionHandler=clicked&uploaderUrl=<%=request.getContextPath()%>/bss/images/click">
			</object>
		</div>  
	</div>
	</body>
</html>
